 import RestUtil from "@/utils/rest-util";
 export default class FormCreateApi{
    public static async getTables(params:any){
          const result:any=await RestUtil.get("/api/code/gen/list",params);
          return result;
    }
    //根据表id获取表的基础信息
    public static async getTableColumnDetial(params:any){
          const result:any=await RestUtil.get(`/api/code/gen/${params.tableId}`,{});
          return result;
    }
    //修改表单数据
    public static async saveTableColumns(params:any){
         const result:any=await RestUtil.post("/api/tool/gen/edit",params);
         return result;
    }
    //查询菜单数据
    public static async queryOptionselect(){
         const result:any=await RestUtil.get(`/api/system/dict/type/optionselect`,{});
         return result;
    }
    //查询选择项
    public static async queryMenu(){
         const result:any=await RestUtil.get(`/api/system/menu/treeselect`,{});
         return result;
    }
}